# 设置 CMAKE 的最低版本
cmake_minimum_required(VERSION 3.21)

# 设置项目名称
project(c-project-01-base-study)

# 设置 C 的版本
set(CMAKE_CXX_STANDARD 11)

# 链接静态库
link_libraries(pthread)

# 设置 CMAKE 的子项目
add_subdirectory(demo-01-hello-world)

add_subdirectory(demo-02-namespace)

add_subdirectory(demo-03-using)

add_subdirectory(demo-04-reference)

add_subdirectory(demo-05-const-and-define)

add_subdirectory(demo-06-function-argument)

add_subdirectory(demo-07-class)

add_subdirectory(demo-08-overload-function)

add_subdirectory(demo-09-new-and-delete)

add_subdirectory(demo-10-static)

add_subdirectory(demo-11-friend)

add_subdirectory(demo-12-singleton)

add_subdirectory(demo-13-overload-operator)